﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HPITSSModel;
using HPITSSDAL;

namespace HPITSSBLL
{
   public class TruckBLL
    {
        public static List<Truck> ShowTuckInfo()
        {
            return TuckDAL.TruckList();
        }
        /// <summary>
        /// 删除车辆信息
        /// </summary>
        /// <param name="TruckID"></param>
        /// <returns></returns>
        public static bool DelTruck(string TruckID)
        {
            return TuckDAL.DelTruck(TruckID) == 1 ? true : false;
        }
        /// <summary>
        /// 显示要进行修改的车辆信息
        /// </summary>
        /// <param name="TruckID"></param>
        /// <returns></returns>
        public static Truck EdinTruck(string TruckID)
        {
            return TuckDAL.EdinTruck(TruckID);
        }
    }
}
